﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ModelLayer;

// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IReservationCtrl" in both code and config file together.
[ServiceContract]
public interface IReservationCtrl
{
	[OperationContract]
	int addReservation(string name, string phoneNr, Ticket ticket);

	[OperationContract]
	bool removeReservation(int id);

	[OperationContract]
	bool updateReservation(int id, string name, string phoneNr, Ticket ticket);

	[OperationContract]
	Reservation getReservationById(int id);

	[OperationContract]
	Reservation getReservationByTicket(int ticketId);

	[OperationContract]
	Reservation[] getReservations();
}
